package org.proxywars.engine.rts.tests;

import org.proxywars.engine.rts.IUnit;

public class CreateSoldier extends UnitCreationCommand {

	public CreateSoldier(int steps) {
		super(steps);
	}

	@Override
	public boolean canBeExecuted(IUnit subject) {
		if (subject instanceof HeadQuarterBuilding)
			return true;
		return false;
	}

	protected IUnit createUnit() {
		return new Soldier(getOwner());
	}
}
